﻿@model Subfaculty.WebApplication.ViewModels.StudyGroupViewModel

@using (Html.BeginForm())
{
	<fieldset>
		<legend>Кафедра</legend>
    
		@*<%-- Requred to identify the customer when doing update --%>*@
    
		@Html.HiddenFor(c => c.Id)    
		<div>
			@Html.LabelFor(c => c.StudyArea)
			<br />
			@Html.DropDownListFor(model => model.StudyAreaId, (IEnumerable<SelectListItem>) ViewBag.StudyAreas)

			@Html.ValidationMessageFor(c => c.StudyArea)
		</div>
		<br />
		<div>
			@Html.LabelFor(c => c.StudyYear)
			<br />
			@Html.DropDownListFor(model => model.StudyYearId, (IEnumerable<SelectListItem>) ViewBag.StudyYears)

			@Html.ValidationMessageFor(c => c.StudyYear)
		</div>
		<br />
	</fieldset>
}